package com.lagou.dao;

import com.lagou.domain.PromotionAd;

import java.util.List;

public interface PromotionAdMapper {

    //分页获取所有的广告列表
    public List<PromotionAd> findAllAdByPage();

    //保存广告信息
    public void savePromotionAd(PromotionAd promotionAd);

    //修改广告信息
    public void updatePromotionAd(PromotionAd promotionAd);

    //回显广告信息
    public PromotionAd findPromotionAdById(int id);

    //广告状态上下线
    public void updatePromotionAdStatus(PromotionAd promotionAd);
}
